package com.eduhzy.ttw.commonsdk.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author xubo
 * @date 2018/7/30 14:41
 */
public class CourseLiveHomeData implements Parcelable {

    /**
     * internalId : 1028
     * preImage : http://192.168.0.110:8081//u/cms/www/201803/25180039tg94.png
     * star : 4
     * price :
     * totalPage : 2
     * shopName : 堂堂网自营
     * title : 案例解说新课程教学方法（小学数学）
     */

    private int internalId;
    private String preImage;
    private float star;
    private String price;
    private int totalPage;
    private String shopName;
    private String title;
    private String project;

    public String getProject() {
        return project;
    }

    public void setProject(String project) {
        this.project = project;
    }

    public int getInternalId() {
        return internalId;
    }

    public void setInternalId(int internalId) {
        this.internalId = internalId;
    }

    public String getPreImage() {
        return preImage;
    }

    public void setPreImage(String preImage) {
        this.preImage = preImage;
    }

    public float getStar() {
        return star;
    }

    public void setStar(float star) {
        this.star = star;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public CourseLiveHomeData() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.internalId);
        dest.writeString(this.preImage);
        dest.writeFloat(this.star);
        dest.writeString(this.price);
        dest.writeInt(this.totalPage);
        dest.writeString(this.shopName);
        dest.writeString(this.title);
        dest.writeString(this.project);
    }

    protected CourseLiveHomeData(Parcel in) {
        this.internalId = in.readInt();
        this.preImage = in.readString();
        this.star = in.readFloat();
        this.price = in.readString();
        this.totalPage = in.readInt();
        this.shopName = in.readString();
        this.title = in.readString();
        this.project = in.readString();
    }

    public static final Creator<CourseLiveHomeData> CREATOR = new Creator<CourseLiveHomeData>() {
        @Override
        public CourseLiveHomeData createFromParcel(Parcel source) {
            return new CourseLiveHomeData(source);
        }

        @Override
        public CourseLiveHomeData[] newArray(int size) {
            return new CourseLiveHomeData[size];
        }
    };
}
